API

HTML

These APIs allow writing both in the file loaded in the browser and in the file where its source code is.
If the operations provide as a parameter an element that does not perfectly correspond to that searched for in the source code, they raise errors.
To find out if it is possible to operate on an element, the .find method can be called:
tilepieces.core.htmlMatch.find(element);
/*
Return:
HTML: boolean. true if the innerHTML of the elements are equal
attributes: boolean. true if the outerHTML of the elements are equal
match: DOM Node. the node in the hidden source code tree.
*/