Closed Bug 273796 Opened 20 years ago Closed 20 years ago

Mozilla should strip HTML formatting from page titles

Categories

(Core :: DOM: HTML Parser, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: Edge12, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041109 Firefox/1.0 (MOOX M2)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041109 Firefox/1.0 (MOOX M2)

Some amateur webpage designers put <b>, <i>, and <u> tags into their website
titles.  Mozilla should just ignore this text, as well as their closing tags.

Reproducible: Always
Steps to Reproduce:
1. Save any page as an HTML
2. Insert <b> tag into the title 
3. Open the HTML in Mozilla

Actual Results:  
Mozilla displays "<b>Page Title</b>" in the titlebar.

Expected Results:  
Mozilla should display "Page Title" in the titlebar.

Couldn't give an example site, as all major search engines ignore pointed brackets.
So, against <http://www.w3.org/TR/html401/struct/global.html#edef-TITLE> ? Maybe
only in quirks mode ...
This would have to be a core change, but I would suggest it be a wontfix.  We're
doing the correct thing per the spec, and it's not important enough to merit
being done in quirks mode.

Trying parser.
Assignee: firefox → parser
Severity: trivial → enhancement
Component: General → HTML: Parser
Product: Firefox → Core
QA Contact: firefox.general → mrbkap
Version: unspecified → Trunk
The textarea/title parsing/display is done for compat with IE. Forking it
between standards and quirks mode would be difficult (and not worth it) --> WONTFIX.

As a note, there is no "right thing" here because the spec specifically forbids
tags and comments inside title.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.