Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 358 Bytes

File metadata and controls

14 lines (9 loc) · 358 Bytes

@ungap/processing-instruction

A polyfill for ProcessingInstruction attributes.

import patch from 'https://esm.run/@ungap/processing-instruction';

const template = document.createElement('template');
template.innerHTML = 'a<?b c="d" ?>c';

[...patch(template.content).childNodes];

// [text, b, text]