YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub

YUI 2.x

Ticket #2527888 (closed defect)

Reporter


Kenneth Feldt
Opened: 04/5/09
Last modified: 09/14/09
Status: closed
Type: defect
Resolution: fixed

Owner


Dav Glass
Target Release: 2.8.0
Priority: P3 (normal)
Summary: FFox and Chrome replicate IDs when editing <li> items
Description:

Using the editors for Firefox and Chrome....

When <li> items that have ID attributes, using the editor to insert a new list item replicates the ID of the previous <li> item in the newly created item.

This behavior occurs in Firefox 3.08 and Chrome. This does not occur
with IE8 or Opera 9.6.1

This can be replicated by editing any HTML which has <li> items with
an ID attribute. The following source selection illustrates what happens...

Before Edit:

<ul xmlns="http://www.w3.org/1999/xhtml" id="10" style="margin-top: 0in;">
<li id="11">Federal and state regulatory documents</li>
<li id="12">Requirements documents</li>
<li id="13">Design documents</li>
<li id="14">Organizational policies</li>
<li id="15">Standard operating procedures</li>

</ul>

After Adding one item....

<ul xmlns="http://www.w3.org/1999/xhtml" id="10" style="margin-top: 0in;">
<li id="11">Federal and state regulatory documents</li>
<li id="12">Requirements documents</li>
<li id="13">Design documents</li>
<li id="14">Organizational policies</li><li id="14">This is newly added<br></li>
<li id="15">Standard operating procedures</li>

</ul>

Type: defect Observed in Version: 2.7.0
Component: Editor Severity: S3 (normal)
Assigned To: Dav Glass Target Release: 2.8.0
Location: Library Code Priority: P3 (normal)
Tags: editor duplicate id Relates To:
Browsers: Firefox 3.x - PC
URL:
Test Information:

Change History

Dav Glass

YUI Developer

Posted: 04/6/09
  • location changed from Other to Library Code
  • milestone changed to FUTURE
  • status changed from new to accepted

Dav Glass

YUI Developer

Posted: 06/26/09
  • milestone changed from FUTURE to 2.8.0

Dav Glass

YUI Developer

Posted: 07/14/09

I added a patch to Editor to catch this error and I submitted the bug back to Mozilla:
https://bugzilla.mozilla.org/show_bug.cgi?id=504157

Dav Glass

YUI Developer

Posted: 07/14/09
  • resolution changed to fixed
  • status changed from accepted to checkedin

fixes #2527888 - Added method to filter duplicate id's on list items
View Commit: d04a66a4e8b9003a24eaa505349b1911915eeef2

George

YUI Developer

Posted: 09/14/09
  • status changed from checkedin to closed

2.8.0 has been released. All "checkedin" items are available for download in the official release. Status of "checkedin" items is being set to closed.