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: | Raymond.Gao@gmail.com | Owned by: | Raymond.Gao@gmail.com |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | attributes | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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 comment:1
Changed June 13, 2011 10:10AM UTC by 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 comment:3
component: | unfiled → attributes |
---|---|
owner: | → Raymond.Gao@gmail.com |
priority: | undecided → low |
status: | new → pending |
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 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 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.
use prop() functon...