Closed Bug 248396 Opened 21 years ago Closed 21 years ago

Bad handling of links with "target" attribute with bad name

Categories

(Core :: DOM: Navigation, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 105693

People

(Reporter: shift, Assigned: adamlock)

References

()

Details

User-Agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux; fr, fr_FR) (KHTML, like Gecko) Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040402 Firefox/0.8 When the target of a link is not respecting W3C specifications ( http://www.w3.org/TR/REC-html40/types.html#h-6.16 ) gecko will ignore the target attribute. So except _blank, _self, _parent and _top all other target names who don't begin by an alphabetic character will be ignore. Reproducible: Always Steps to Reproduce: 1. Go to http://shift.free.fr/trash/bugs/konqui/target.html 2. Click on target="_foobar" Actual Results: Askjeeves site is open in a new window Expected Results: Askjeeves site will open in the current window
W3C says "SHOULD3 but to my mine it is important to respect this because new reserved names will appear in the futur specifications and so webmasters won't used underscore to prefix the name of their target because in the futur nobody will know how this will be handle. By ignoring bad target the webmaster have to use good name to make work his links. It is better to force him to learn W3C specifications. For information Internet Explorer introduce new "reserved" target names http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/target.asp _search and _media
making a guess at component... or maybe it's the windowwatcher which does this stuff?
Assignee: general → adamlock
Component: Browser-General → Embedding: Docshell
QA Contact: general → adamlock
New window or ignore? http://www.w3.org/TR/1998/REC-html40-19980424/present/frames.html#h-16.3.2 16.3.2 Target semantics 4. If any target attribute refers to an unknown frame F, the user agent should create a new window and frame, assign the name F to the frame, and load the resource designated by the element in the new frame. http://www.w3.org/TR/1998/REC-html40-19980424/types.html#h-6.16 6.16 Frame target names Except for the reserved names listed below, frame target names (%FrameTarget; in the DTD) must begin with an alphabetic character (a-zA-Z). User agents should ignore all other target names.
*** This bug has been marked as a duplicate of 105693 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.