- Use a
<template>
tag as the context node for the majority of fragment parsing, which greatly simplifies this gem. #7 @flavorjones @stevecheckoway - Clean up the README. @marcoroth
Nokogiri::HTML5::Inference.parse
always returns aNokogiri::XML::Nodeset
for fragments. Previously this method sometimes returns aNokogiri::HTML5::DocumentFragment
, but some API inconsistencies betweenDocumentFragment
andNodeSet
made using the returned object tricky. We hope this provides a more consistent development experience. @flavorjones
- When a
<head>
tag is seen first in the input string, include the<body>
tag in the returned fragment or node set. (#3, #4) @flavorjones
- Make protected methods
#context
and#pluck_path
public, but keeping them undocumented.
- Initial release