Closed Bug 276268 Opened 20 years ago Closed 20 years ago

firefox doesn't correctly ignore unknown tags of the form <% ... %>

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 72565

People

(Reporter: ikjeft01, Assigned: bugzilla)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 tags such as <z foo bar> are ignored. however, (and unlike internet exploder), tags of the form <% foo bar %> are NOT ignored. Note that <z foo bar %> IS ignored (as it should be). And why tomcat isn't taking the "<% ... %>" out in the first place is a tomcat issue. Reproducible: Always Steps to Reproduce: 1. click on the URL. note that the JSP comment from the page displays. 2. Do a 'view source' and you can see the comment line 3. Actual Results: tags such as <z foo bar> are ignored. however, (and unlike internet exploder), tags of the form <% foo bar %> are NOT ignored. Note that <z foo bar %> IS ignored (as it should be). Expected Results: tags such as <z foo bar> are ignored. however, (and unlike internet exploder), tags of the form <% foo bar %> are NOT ignored. Note that <z foo bar %> IS ignored (as it should be).
URL should be http://my.confertel.net/confertel/relogin.html... (In reply to comment #0) > User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 > Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 > > tags such as <z foo bar> are ignored. however, (and unlike internet exploder), > tags of the form <% foo bar %> are NOT ignored. Note that <z foo bar %> IS > ignored (as it should be). > > And why tomcat isn't taking the "<% ... %>" out in the first place is a tomcat > issue. > > Reproducible: Always > > Steps to Reproduce: > 1. click on the URL. note that the JSP comment from the page displays. > 2. Do a 'view source' and you can see the comment line > 3. > > Actual Results: > tags such as <z foo bar> are ignored. however, (and unlike internet exploder), > tags of the form <% foo bar %> are NOT ignored. Note that <z foo bar %> IS > ignored (as it should be). > > > > Expected Results: > tags such as <z foo bar> are ignored. however, (and unlike internet exploder), > tags of the form <% foo bar %> are NOT ignored. Note that <z foo bar %> IS > ignored (as it should be).
Processing Instructions are actually illegal in HTML, although they exists in XML. Previous reports like this were set to INVALID, although we migth ignore them (in quirks mode only ?). See bug 59985 comment 36 and below for a possible solution.
Well, no, <% ... %> isn't a PI, unlike <?php ... > (which isn't displayed), and it isn't an unknown element, because % isn't a valid NAME character in HTML, so it can't be the start of an element name. It's just invalid character data (gee, wonder why IE chooses to hide invalid character data that looks like unprocessed ASP?). *** This bug has been marked as a duplicate of 72565 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.