Skip to main content

Bug Tracker

Side navigation

#9123 closed bug (fixed)

Opened May 05, 2011 02:00PM UTC

Closed May 05, 2011 04:52PM UTC

Last modified May 06, 2011 03:29PM UTC

Strange behavior of attr method when generate input element.

Reported by: Soul_Master Owned by:
Priority: high Milestone: 1.6.1
Component: attributes Version: 1.6
Keywords: Cc:
Blocked by: Blocking:
Description

I try to set attr of input element by using boolean type. But the result is very strange for me.

http://jsfiddle.net/hsh8m/

Attachments (0)
Change History (3)

Changed May 05, 2011 04:52PM UTC by timmywil comment:1

resolution: → fixed
status: newclosed

Construct boolHook and rboolean regex to deal with boolean attributes. Fixes #9129. Fixes #9123.

  • Construct regex for all attributes which are boolean attributes by specification.

+ This allows us to do what users expect with enumerated attributes and allows us to no longer complicate the issue.

+ People are just too confused with passing "true" instead of true when they should, so we won't have to worry about that anymore.

  • Modularize code for dealing with boolean attributes into a separate hook to keep attr short and fast.

Changeset: 5097e6d1c672ef5fd3fcc0022ce84519233189cc

Changed May 05, 2011 06:33PM UTC by timmywil comment:2

milestone: 1.next1.6.1

Changed May 06, 2011 03:29PM UTC by timmywil comment:3

component: unfiledattributes
priority: undecidedhigh