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

RESOLVED INVALID

Status

()

--
minor
RESOLVED INVALID
16 years ago
15 years ago

People

(Reporter: jruderman, Assigned: harishd)

Tracking

({testcase})

Trunk
x86
Windows XP
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(2 attachments)

(Reporter)

Description

16 years ago
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.
(Reporter)

Comment 1

16 years ago
Created attachment 128216 [details]
testcase

Comment 2

16 years ago
Created attachment 128231 [details]
A better, clearly explained 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
Last Resolved: 16 years ago
Resolution: --- → INVALID
(Reporter)

Comment 4

15 years ago
*** Bug 226495 has been marked as a duplicate of this bug. ***
(Reporter)

Comment 5

15 years ago
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.