Closed
Bug 306356
Opened 19 years ago
Closed 19 years ago
Display error when xhtml served as application/xhtml+xml has an invalid or no xmlns
Categories
(Core :: XML, enhancement)
Core
XML
Tracking
()
RESOLVED
INVALID
People
(Reporter: bmills, Unassigned)
References
()
Details
Attachments
(1 file)
|
168 bytes,
application/xhtml+xml
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20050815 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20050815 Firefox/1.0+ Deer Park a2 shows the provided URL (served as application/xhtml+xml as per http://www.w3.org/TR/xhtml-media-types/#application-xhtml-xml ) as an incorrect (see Bug 306353) XML parse tree instead of properly-rendered XHTML. The link validates with the W3 validator AND displays correctly in Safari, although it's technically not valid XHTML because it's missing the xmlns declaration. Deer Park seems to try to parse it as XHTML -- it just displays as XML. Reproducible: Always Steps to Reproduce: Go to provided URL. Actual Results: Incorrect XML parse tree Expected Results: Error message explaining that/why the page is not valid XHTML, or "correct" XHTML rendering (i.e. inserting a best-guess xmlns and continuing).
Comment 1•19 years ago
|
||
See point 3 fo strictly conforming documents (http://www.w3.org/TR/2000/REC-xhtml1-20000126/#strict). XHTML documents must have an xmlns declaration.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 2•19 years ago
|
||
| Reporter | ||
Comment 3•19 years ago
|
||
Yes, the xmlns is required -- but Mozilla should either tolerate the missing xmlns (as does Safari -- which may be a compatibility issue) or produce an error message (as it does with well-formedness errors). Graceful failure modes, not unhelpful errors...
Summary: XHTML without proper xmlns declaration served as application/xhtml+xml not rendered → XHTML without xmlns served as application/xhtml+xml not rendered
| Reporter | ||
Comment 4•19 years ago
|
||
If it's not a valid bug, then at least it's a valid feature request: CORRECT error messages for invalid XHTML served as application/xhtml+xml for proper, useful page debugging, OR permissive rendering of xhtml missing the required xmlns field for compatibility with KHTML-based browsers.
Severity: normal → enhancement
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 5•19 years ago
|
||
Confirming feature request
Assignee: nobody → xml
Status: UNCONFIRMED → NEW
Component: File Handling → XML
Ever confirmed: true
OS: MacOS X → All
Product: Firefox → Core
QA Contact: file.handling → ashshbhatt
Hardware: Macintosh → All
Summary: XHTML without xmlns served as application/xhtml+xml not rendered → Display error when xhtml served as application/xhtml+xml has an invalid or no xmlns
Version: unspecified → Trunk
Comment 6•19 years ago
|
||
XHTML is just XML; the MIME type shouldn't affect how we parse it. When parsed as XML, this document doesn't contain any XHTML elements.
Status: NEW → RESOLVED
Closed: 19 years ago → 19 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•