Closed
Bug 458596
Opened 16 years ago
Closed 16 years ago
unable to use some self-closing XHTML elements such as <texarea />, <script />
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 162653
People
(Reporter: anshar, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092510 Ubuntu/8.04 (hardy) Firefox/3.0.3 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092510 Ubuntu/8.04 (hardy) Firefox/3.0.3 I have a site that outputs only XHTML and uses internally an XML parser to process templates. In the templates i have to define for example an (empty!) textarea with a least one space as such: <textarea> </textarea>, otherwise my XML parser will transform it to <textarea /> which in turn can not be displayed by firefox, even though the page is identified as being XHTML. The same goes for <script> </script> except that <script /> was actually usable in firefox 2, so a lot of stuff broke in firefox 3 where i had to update <script /> tags to <script> </script>. It seems however that, when supporting XHTML, one would expect to be able to use self-closing tags? Not entirely sure if it's a bug or a feature... On a sidenote: <textarea /> etc simply isn't shown but if you do a <script /> in the <head> part, the entire page stays blank! Reproducible: Always Steps to Reproduce: 1.Create a page with a self-closing tag such as <div /> or <textarea /> 2.Open the page in firefox (ff 3 for some tags such as <script />) Actual Results: When using <script /> in the <head> part, the page will remain blank, when using stuff like <textarea /> they simply won't show up. Expected Results: Recognize self-closing tags, at least in a page defined as being XHTML
Comment 1•16 years ago
|
||
(In reply to comment #0) > even though the page is identified as being XHTML. How did you verify this? Is the page's type in Tools -> Page Info really the XHTML MIME type (application/xhtml+xml)? Note that serving an XHTML page as HTML (MIME type text/html) will cause Firefox the page to be rendered as HTML - which doesn't know self-closing elements at all!
Comment 2•16 years ago
|
||
Simon's theory sounds correct. Dup of bug 408702, bug 199165, or bug 162653.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•