Menu

#131 cannot parse the element's attribute with script correctly

open
nobody
build (3)
5
2011-10-08
2011-10-08
Anonymous
No

when i wanna parse a html code like this:

some other words....<img src='example.jpg' onclick='javascript:if(this.width>100)this.width=100;' /> some words....
________________^________________________________________^__________________^___________

my code cannot get a correct result by CyberNeko, the element retrieved from the html document is :

<img src='example.jpg' onclick='javascript:if(this.width>

but not I expected below :

<img src='example.jpg' onclick='javascript:if(this.width>100)this.width=100;' />

Discussion


Log in to post a comment.