Open Bug 176473 Opened 22 years ago Updated 2 years ago

Invalid markup generated when creating two adjacent links

Categories

(SeaMonkey :: Composer, defect)

defect
Not set
major

Tracking

(Not tracked)

People

(Reporter: glazou, Unassigned)

Details

(Keywords: topembed+, Whiteboard: [adt2] EDITORBASE+)

Attachments

(2 files)

Reproduced with trunk build 20021023 and NS7.0

1. launch Composer
2. type   aaabbbbcccc
3. select all the "c" characters
4. create a link, target "c"
5. then select all the "b" characters
6. create a link, target "b"

Expected result:
   aaa<a href="b">bbbb</a><a href="c">cccc</a>

Actual result:
   aaa<a href="c"><a href="b">bbbb</a>cccc</a>

Hint: the HTML4 content model for A excludes A (section 12.2 of spec)

  <!ELEMENT A - - (%inline;)* -(A) -- anchor -->
nominating EB
Whiteboard: EDITORBASE
EDITORBASE+. nsbeta1+
Keywords: nsbeta1+
Whiteboard: EDITORBASE → EDITORBASE+
I've discussed this with Daniel.  I'm worried this fix will disable merging of
like styles in some cases.  

I think the core issue is that we are putting in the <a> tags before we have the
href.  Offhand I can't think of any good reason for that.  So I suggest we look
into changing that, which should have the effect of fixing this bug.
Target Milestone: --- → M1
QA Contact: sujay → sairuh
EDITORBASE+ topembed+ normalization
Keywords: topembed+
Target Milestone: M1 → mozilla1.5beta
adt: nsbeta1+/adt2
Whiteboard: EDITORBASE+ → [adt2] EDITORBASE+
Daniel can you take a look. 
Assignee: jfrancis → glazman
QA Contact: bugzilla → editor

Hey Daniel,
Does this issue still reproduce for you or can we close it?

Flags: needinfo?(daniel)

The bug assignee didn't login in Bugzilla in the last months and this bug has severity 'major'.
:hsinyi, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: daniel → nobody
Flags: needinfo?(htsai)

Redirect a needinfo that is pending on an inactive user to the triage owner.
:hsinyi, since the bug has high severity and recent activity, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(daniel) → needinfo?(htsai)

Moving to another component as the STR in comment 0 mentioned "launch composer"

Component: DOM: Editor → Composer
Flags: needinfo?(htsai)
Product: Core → SeaMonkey
Target Milestone: mozilla1.5beta → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: