xhtml

Why has innerHTML not been added to the w3c specs?

Is there any particular reason that it isn't in any of the the specs? It seems to be supported in all browsers, (although I'll admit it doesn't work right in all of them...since you have to use libraries like innerXHTML to get it to work right thanks to Internet Explorer. Is innerHTML in danger of disappearing from forthcoming versions...

Different Language In Website

I'm trying to write a website in Slovak language (central Europe). What I have done is put these two meta tags into the header: <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> <meta http-equiv="Content-Language" content="sk" /> The problem is all characters with diacritique are substituted with garbage chara...

HTML tag to prevent HTML tags to be executed?

Basic question which I thought of asking on Superuser, but it is a programming question I think. I just started learning HTML, so please bear with me. How can I prevent a program from interpreting an HTML tag / syntax? For example, I want to write a flash card like this: The html code for < is &lt; I would like a solution that w...

What is actully harmful in to use css hacks instead of IE conditional stylesheets ?

What is harmful in to use css hacks instead of IE conditional stylesheets. What is bad with css hack , will i get any problem in css management now or in future with hacks. I read many articles but haven't found any good reason. adding extra external conditional stylesheet means one more HTTP request. ...

frameset column height

Hi i want to create a page with frame set first i divide the page in 3 rows. In second row i divide it by 2 coloumns. My problem is that first column of the second row contain lot of content(a full screen height), so there is a scroll bar , I want to show all the content without scrolling..., is it possible ??? can i give height ...

Resize background-image to fill the page height-wise, but allow elements on either side

I'm having a lot of issues trying to do this, and I'm now wondering if it's even possible in css. (Maybe I will need to find some other way using PHP, Flash or Javascript!) Basically, I have 3 images. Each are 1920x1200 (x*y) in size. When placed from left-to-right they form an image of a landscape. I want to create a webpage in which y...

Escaping ampersands inputted by users through text fields?

Like almost all apps today, I have users who enter various information through standard text inputs. My app is running on Rails. It's a no-brainer to escape ampersands that I include as part of the site copy, etc. But how do I escape an ampersand that is dynamically inputted by a user? Currently, it's totally breaking my frontend...

Escaping Apostrophes Input by Users Through Text Fields in a Rails App?

Update: If you look at the javascript code that I pasted in the update below, I have single quotes around the variety.name variable. I think I was just following a tutorial in doing that. Turns out that when I switch those to double quotes, everything works fine. Question: Is this a stable solution? Or would it still be better to imp...

XSLT wont allow me to use self-closing img and br tags

I have some XSLT that gets rendered in the Sitecore 6 CMS, but I don't think that this issue is specific to the product. If I have a self-closing img or br tag, like so: <br /> <img src="your.example.com" /> The resulting output would be: <br> <img src="your.example.com"> The output method of the XSLT file is HTML. Is it supposed...

Is it possible to have an opacified background layer which doesn't opacify its children ?

Let say I've this code : <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <title>Layers Opacity</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ...

Is an XHTML doc nested inside an XHTML doc invalid?

Hi Guys, The background to this is that we have a ASP.NET master page that reads its contents from a file supplied to us by a third party. The file that they supplied is a complete HTML document (including DOCTYPE declaration, tags with & tags also). We then take that wrapper and insert its contents into the project’s Master pages...

Why does the use of the Frameset DTD cause a validation failure?

The project I work on takes random HTML files, converts them to XHTML as best as it can, and wraps them with some XML metdata. The DOCTYPE is stripped out as the resulting XML file is not an XHTML document. However when retrieving the wrapped XHTML from the XML file the DOCTYPE should be reinserted. Because these are random HTML files ...

IE cannot find the W3C XHTML DTD (Error 2146697204)

I have a template that starts every page like this: <?xml version="1.0" encoding="utf-8"?> <!-- blah blah--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > <html xmlns="http://www.w3.org/1999/xhtml"&gt; ... </html> that produces the error: The XML page can...

Container div doesn't surround it's floating child elements. How can I fix this?

Hi, I've a XHTML structure like this: <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <head> <title>Titel</title> <link rel="stylesheet" type="text/css" href="st...

Duplicated Zend_Form Element ID in a page with various forms

How do I tell the Zend_Form that I want an element (and it's ID-label, etc) to use another ID value instead of the element's name? I have several forms in a page. Some of them have repeated names. So as Zend_Form creates elements' IDs using names I end up with multiple elements with the same ID, which makes my (X)HTML document invalid. ...

Can an XSLT insert the current date?

A program we use in my office exports reports by translating a XML file it exports with an XSLT file into XHTML. I'm rewriting the XSLT to change the formatting and to add more information from the source XML File. I'd like to include the date the file was created in the final report. But the current date/time is not included in the ori...

Uploading files using HTML file input on iphone

I am creating a web form for uploading small movie clips to a HTTP server. However, while my HTML file input control gets shown on an ipod touch, the button is completely disabled and I cannot click it to upload files. What do I have to do to use the input control to upload files (e.g. movie clips or pictures) to my HTTP server. My page...

Google Maps API: Trouble with GDirections object literals

I am successfully calling GDirections to get a map with directions between a point A and point B that I have specified. However, I can't seem to get certain return values. calculateDistanceFromRoute.js: var map = new GMap2(document.getElementById("map_canvas")); function initialize() { if (GBrowserIsCompatible()) { var m...

How to insert XUL into a XHTML document

I have a XHTML document and wnat to embed XUL widgets into the document. What is the correct XML syntax to do so? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" co...

HTML page to XHTML with TagSoup

Sorry if this is too simple, but I simply couldn't find a tutorial nor the documentation of the Java version of TagSoup. Basically I want to download an HTML webpage from the internet and turn it into XHTML, contained in a string. How can I do this with TagSoup? Thanks! ...