Skip to main content

Bug Tracker

Side navigation

#14886 closed bug (notabug)

Opened March 13, 2014 04:40PM UTC

Closed March 13, 2014 09:27PM UTC

Sizzle Function assumes Type is String

Reported by: f.m.mallot@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.1.0
Keywords: Cc:
Blocked by: Blocking:
Description

In the Sizzle Function (l. 732) it is assumed in line

806, that context.getAttribute("id") returns a string.

I realize, that this shouldn't cause a problem, since the id is usually a string.

However, it does in combination with the newest version of x3dom.

The simplest solution for me, was to check if the typeof old is "string", instead of the currently implemented null check.

Since this problem is neither depend on the browser or OS I won't include them.

Older Versions of jQuery seem to have been designed with the same flaw.

Attachments (0)
Change History (1)

Changed March 13, 2014 09:27PM UTC by timmywil comment:1

resolution: → notabug
status: newclosed

Thank you for opening an issue! Unfortunately, jQuery does not support x3dom. If they do not exist already, javascript libraries specifically designed to work with it will probably soon manifest themselves.