Skip to main content

Bug Tracker

Side navigation

#7537 closed bug (invalid)

Opened November 16, 2010 07:25PM UTC

Closed November 16, 2010 10:03PM UTC

Last modified October 22, 2011 12:27AM UTC

attr('onload') returns null when a string is actually present as a DOMElement attribute

Reported by: IgorMinar Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

element.attr('onload') should return whatever the value is returned via DOMElement#getAttribute('onload'), currently it returns null in some cases, see example:

http://jsfiddle.net/IgorMinar/d6cuH/1/

Attachments (0)
Change History (2)

Changed November 16, 2010 10:03PM UTC by snover comment:1

_comment0: Thanks for the report, but this is not a jQuery bug. You are trying to create namespaced elements in an HTML document (impossible), and are passing invalid JavaScript to an `onload` event handler (also impossible).1289945000919487
resolution: → invalid
status: newclosed

Thanks for the report, but this is not a jQuery bug. You are trying to create namespaced elements in an HTML document (impossible), and are passing invalid JavaScript to an onload event handler (also impossible). Selecting onload works fine in wellformed HTML: testcase

Changed October 22, 2011 12:27AM UTC by IgorMinar comment:2

This was a valid bug, that was fix in 1.6.4 or some previous version: http://jsfiddle.net/IgorMinar/d6cuH/6/