XML View Source flags doctype after an XML declaration as an error

NEW
Unassigned

Status

()

P3
normal
5 years ago
3 months ago

People

(Reporter: hsivonen, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

5 years ago
From http://stackoverflow.com/questions/19849648/stray-doctype-error-in-firefox-source-code-viewer

View Source marks the doctype as an error. It shouldn't.

Comment 1

5 years ago
Hi,

The same issue occurs for an XML document using an XSL to produce HTML.
First the DOCTYPE is flagged as "stray doctype" in the source viewer.
I commented it out, and then I got a console error for the XSL line:
> InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable

A second problem (maybe a consequence) is that relative links don't work correctly for XML+XSL producing HTML output.

Example: http://www.growthcharts.info/support/helpfiles/growthcharts.xml#faq
When the page is loaded, the link doesn't work. 
Then, if you click on the link address bar and hit Enter again, it goes straight to the right place.

Thanks,
Marius
(Reporter)

Updated

3 months ago
Assignee: hsivonen → nobody
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.