Все вопросы: [xhtml]

609 вопросов

4
голосов
5ответов
11340 просмотров

<embed> tag in HTML not supported</embed>

I get the following warning in a ASP.NET project using the &lt;embed&gt; tag to put a .swf: Warning: Validation (XHTML 1.0 Transitional): Element 'embed' is not supported. What is the "supported" way to do it instead???

1
голосов
1ответов
428 просмотров

IE8 reserving space for a non-displayed element

I have a simple page with a form and selects. Number of those selects are set invisible and I use Javascript (JQuery) to set visible/invisible the good one. The CSS to set them invisible is : select { margin:0; margin-top:5px; padding:0; border:0; } .Invisible { display:no...

0
голосов
2ответов
7152 просмотров

How to remove namespace in xslt

using xslt I am trying to get xhtml o/p .I have used xmlns="http://www.w3.org/1999/xhtml" in &lt;xsl:stylesheet&gt; to get xhtml o/p.Every thing is fine but in the first div I am getting the same namespace. i.e. &lt;div xmlns="http://www.w3.org/1999/xhtml"&gt; Now how to remove xmlns="h...

1
голосов
2ответов
856 просмотров

How do I get html attribute order to be consistent when testing in Javascript

I have a component that creates a set of text like this in the innerHTML: fourty two&lt;br&gt;&lt;br&gt;&lt;input value="Select" type="button"&gt; upon setting the innerHTML, the browser will sometimes parse this text, producing: fourty two&lt;br&gt;&lt;br&gt;&lt;input type="button" value="Se...

2
голосов
2ответов
9388 просмотров

Float and Height

I have a div named footerWrap, which contains 3 unordered lists. I floated left, all the unordered lists. My intention was to make the footerWrap grow in height according to the height of the unordered lists. However... in all browsers (exept IE6) the unordered lists pass over the div... like th...

4
голосов
2ответов
3650 просмотров

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!

5
голосов
1ответов
1754 просмотров

How to insert XUL into a XHTML document

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

0
голосов
1ответов
1060 просмотров

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() { i...

17
голосов
1ответов
13933 просмотров

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 cli...

92
голосов
6ответов
173687 просмотров

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 cu...

1
голосов
4ответов
14854 просмотров

SVG not working when access on localhost. Why?

Does anybody know why the same code from this page http://emacsformacosx.com/ would not render when hosted on a local tomcat server? I am trying to play with some SVG but can't see to make it work locally. Any ideas?

0
голосов
2ответов
264 просмотров

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,...

2
голосов
2ответов
5466 просмотров

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

I've a XHTML structure like this: &lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"&gt; &lt;head&gt; &lt;title...

1
голосов
4ответов
2722 просмотров

IE cannot find the W3C XHTML DTD (Error 2146697204)

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

0
голосов
2ответов
458 просмотров

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 reinsert...

0
голосов
3ответов
53 просмотров

Is an XHTML doc nested inside an XHTML doc invalid?

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 &amp; tags also). We then take that wrapper and insert its conte...

1
голосов
4ответов
168 просмотров

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

Let say I've this code : &lt;!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"&gt; &lt;head&gt; &lt;title&gt;Layers Opacity&lt;/title&gt; &lt;m...

8
голосов
3ответов
8098 просмотров

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: &lt;br /&gt; &lt;img src="your.example.com" /&gt; The resulting output would be: &lt;br&gt; &lt;img src="your.example.com"...

0
голосов
2ответов
2367 просмотров

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 sol...

2
голосов
1ответов
3868 просмотров

Escaping ampersands input 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 input by a user? Curre...

0
голосов
1ответов
1261 просмотров

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 landsc...

0
голосов
2ответов
772 просмотров

frameset column height

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..., ...

0
голосов
2ответов
141 просмотров

What is actually 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 re...

7
голосов
9ответов
7820 просмотров

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 ...

2
голосов
2ответов
845 просмотров

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: &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /&gt; &lt;meta http-equiv="Content-Language" content="sk" /&gt; The problem is all characte...

1
голосов
3ответов
1522 просмотров

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...

1
голосов
4ответов
206 просмотров

How many tags can have same id in document

I know there can be only one unique ID attribute per document. To be sure, I need real doc link where this is written.

0
голосов
2ответов
198 просмотров

Giving an Element 100% width while using fixed padding

I have an element with width 100% of the body and i need to be able to give it padding in pixels. every attempt i had at it ended up adding scrolling. i can't use overflow:hidden because i need to have vertical scrolling, and overflow-x/y isn't fully supported yet. so how can i add fiexed paddin...

0
голосов
2ответов
280 просмотров

How to automatically propagate the XMLNS attribute from on XSL template to another

I'm looking for a way to have the XMLNS attribute propagate automatically from one XSL Template to another so I don't have to redeclare it each time. Here's my situation. I'm trying to transform an XML file into an XHTML file using a XSLT file. My XML file is: &lt;?xml version="1.0" encoding="U...

10
голосов
2ответов
15642 просмотров

Is element ‘ul’ cannot be nested within element ‘ol’? (i am getting this error from xhtml validator) help pls

&lt;ol style="padding-top:0;"&gt; &lt;li&gt;&lt;a href="http://www.24hourfitness.com/membership/offers/specials.html?cm_mmc=Silverfox-_-SEM-_-Google-_-Branded?"&gt;24 Hour Fitness&lt;/a&gt;&lt;/li&gt; &lt;!-- open nested list --&gt; &lt;ul&gt; &lt;li&gt;This website would be ideal to...