HTML5-UTILS
helper functions to parse and manipulate html5
Attribute Helpers
getAttrIndex
first index of the attribute inside attr array or -1 if attribute is not set
hasAttr
check if attribute is set
getAttr
returns attribute value or null
setAttr
sets/changes attribute.
removeAttr
TODO
- Create nodes, fragments, comments and shadows
- Append, prepend, replace, remove, swap operations
- Query Selector for nodes. Optional Jquery operations also. like cheerio
- Operations like innerText and innerHTML.
- Extract contents of link nodes and create curresponsing tags
- Change tags
- Ancestors and children helpers
- Cleaners and minifiers
- Change value of desired attribute/s