[Webkit-unassigned] [Bug 70810] nameNodeListCache should be invalidated when name attribute changes/modified.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 9 11:44:56 PST 2011


--- Comment #22 from Darin Adler <darin at apple.com>  2011-12-09 11:44:56 PST ---
(In reply to comment #21)
> Suppose, getElement(tagName) is the function which return me the element based on the tag name. 
> Now when we do shouldBeTrue("getElement(); document.getElementsByName('fullname').length != oldLength") it gives "PASS getElement(); document.getElementsByName('fullname').length != oldLength is true" in the expected output rather giving me the actual tag name in the expected result.
> Can you please correct me if I am missing something here. Thanks.

The correct way to write this is more like this:

    shouldBe("getElement(); document.getElementsByName('" + fullname + "').length", "oldLength")

There are other refinements you can make too, but that's the basic pattern that works well.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list