agibsonsw wrote:You, or perhaps someone else, would need to bear in mind that attributes can be a single word (SELECTED) and may or may not have quotes or apostrophes. (Personally, I always include double-quotes .)
Also, checks might need to be made that the user had selected a single word, and not included extra spaces, or the equal sign. Some attributes (data-*) are also hyphenated.
Given the above I won't pursue this myself - if you are highlighting the attribute-name isn't it just as easy to highlight the remaining text? - but someone else's opinion may differ.
If it were extended so that first selecting, or clicking in, the tag-name would remove the whole tag (rather than just an attribute) then I can see that this would be more useful, that is, more flexible. Although, I think there might already be a plug-in that removes tags(?).
Users browsing this forum: No registered users and 4 guests