Skip to main content

Bug Tracker

Side navigation

#9568 closed bug (fixed)

Opened June 13, 2011 04:46AM UTC

Closed June 13, 2011 02:03PM UTC

customize tag's attribute

Reported by: Owned by:
Priority: low Milestone:
Component: attributes Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:

i have a customize html like below:

<codeA id="002" disabled="disabled" checked="checked" myattr="myattr2" />

use function "attr", i can get attribute myattr, but not disabled or checked

any suggestion ?

sample like:

Attachments (0)
Change History (6)

Changed June 13, 2011 09:56AM UTC by anonymous comment:1

use prop() functon...

Changed June 13, 2011 10:10AM UTC by badtoto comment:2

Replying to [comment:1 anonymous]:

use prop() functon...

take a look at my sample code at

i used prop(), it does nothing.

i think it doesn't work for reserved word by customize tag

Changed June 13, 2011 01:18PM UTC by timmywil comment:3

component: unfiledattributes
owner: →
priority: undecidedlow
status: newpending

hmm, so you need disabled and checked on an invalid html tag where disabled and checked don't actually do anything on that tag? It will work if the page is made an xml page.

Changed June 13, 2011 01:24PM UTC by timmywil comment:4

Let me revise my statement. It's supposed to work if set to xml, but hooks are currently set whether it is xml or not. I can fix that much.

Changed June 13, 2011 01:33PM UTC by badtoto comment:5

set to xml ? does it meens the tag is closed ? i did it.

it works well for customize attribute , in my example is "myattr".

in my project, i inherit a layout xml from an exist project, and rerender it to html page, so i need it.

now i use getAttribute function to get the value.

Changed June 13, 2011 02:03PM UTC by timmywil comment:6

resolution: → fixed
status: pendingclosed

Attribute hooks do not need to be attached in XML docs. Fixes #9568.

Changeset: 641ad802111d2dc16ccf4b3721784a6addaf20df