enhancementhelp wanted
仓库指标
- Star
- (380 star)
- PR 合并指标
- (PR 指标待抓取)
描述
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.