Closed Bug 213383 Opened 21 years ago Closed 21 years ago

<p<strong> should not be parsed as <p><strong>

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED INVALID

People

(Reporter: jruderman, Assigned: harishd)

References

()

Details

(Keywords: testcase)

Attachments

(2 files)

All of the text on http://www.somethingawful.com/articles.php?a=440&p=2 is bold
in Mozilla.  The culprit is the invalid HTML "<p<strong>".  IE, Opera, and
Netscape 4 all ignore the tag, but Mozilla treats it as a <P> tag followed by a
<STRONG> tag.
Attached file testcase
Correct parsing is determined by the W3C specification, not by what other
browsers do.

This is a valid, albeit narrowly supported, HTML shortcut.

Recommend INVALID.
Agreed, this is a legitimate use by the SGML rules governing HTML. Teh SMGL 
mastar JeffK could have told you that. ;-)
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
*** Bug 226495 has been marked as a duplicate of this bug. ***
From the dup: if a server strips out <> but not < by itself, this can lead to
XSS problems (testcase: http://smgl.positivism.org/music/indexvuln.html).

The corresponding view-source bug is bug 70918.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: