enhancementhelp wanted
Repository metrics
- Stars
- (380 stars)
- PR merge metrics
- (PR metrics pending)
Description
As suggested in developit/preact#585. Here's the list I came up with:
Browser APIs Preact Uses
It will usePromiseonly if available, falling back tosetTimeout(0)- DOM APIs used are very minimal DOM core 1 / 2:
document.createElement()anddocument.createTextNode()Text.prototype.nodeValueText.prototype.splitText- simply needs to exist (used as fast "is text node" check)- From
Element.prototype:.attributesNodeList.setAttribute(),.getAttribute(),.removeAttribute().appendChild(),.insertBefore(),.replaceChild()
If you use SVG, createElementNS() and (get|set|remove)AttributeNS() are used.