Skip to content

ungap/processing-instruction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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]

About

A polyfill for ProcessingInstruction attributes

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors