Changing innerHTML of the <div> tag, which is inside <a> tag adds automatically <a> tag around the text.
Bug #286289 reported by
Nikita
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mozilla Firefox |
Fix Released
|
Low
|
|||
firefox-3.0 (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: firefox-3.0
Changing innerHTML of the <div> tag, which is inside <a> tag adds automatically <a> tag around the text.
Happens on windows' version too.
See example attached.
ProblemType: Bug
Architecture: i386
Date: Mon Oct 20 11:36:17 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelMo
Package: firefox-3.0 3.0.3+build1+
PackageArchitec
ProcEnviron:
PATH=/
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: firefox-3.0
Uname: Linux 2.6.24-19-generic i686
Changed in firefox: | |
status: | Unknown → Invalid |
Changed in firefox: | |
status: | Invalid → Unknown |
Changed in firefox-3.0: | |
status: | Confirmed → Triaged |
Changed in firefox: | |
status: | Unknown → Confirmed |
Changed in firefox: | |
status: | Confirmed → Fix Released |
Changed in firefox: | |
importance: | Unknown → Low |
To post a comment you must log in.
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.7) Gecko/20060911 Camino/1.0.3
Build Identifier:
This page doesn't validate, so I'm not sure what the expected behavior really is, but the current mozilla behavior is very curious.
Have a look at this example. Comments in the source explain actual/expected behaviors: philisoft. com/bugs/ j/moz/nestedb. html
http://
Workaround is to use <div> tags, not <b>. The only reason I stumbled upon this is because I've seen some "rounded corner" tutorials that use nested <b> tags for the markup, and I've used nested <b> tags on some of my sites without problems. This behavior really had me scratching my head for hours.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.