Bug Tracker

Ticket #9123 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

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/

Change History

comment:1 Changed 3 years ago by timmywil

  • Status changed from new to closed
  • Resolution set to fixed

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.

comment:2 Changed 3 years ago by timmywil

  • Milestone changed from 1.next to 1.6.1

comment:3 Changed 3 years ago by timmywil

  • Priority changed from undecided to high
  • Component changed from unfiled to attributes
Note: See TracTickets for help on using tickets.