Closed
Description
relativize_paths silently transforms gcse:search
Steps to reproduce
- Create an html file with Google's GCSE search snippet
This includes an element for the Google JS to manipulate,<gcse:search></gcse:search>
- Run
nanoc
with rules to applyrelativize_paths
on that html file, withtype: html
- Observe output will read
<search></search>
Expected behavior
I think that nanoc
should not be transforming that element at all. However, maybe there's some subtlety I'm missing about strict HTML specification.
Either of the below would be also acceptable:
nanoc
should print a warning that the element is transformed -- it can surprise people, after allnanoc
should crashfail the build on the element
Actual behavior
Instead, nanoc
succeeds, but changes the element.
Details
I'm surprised to be the first person reporting this -- maybe not that many people are using GCSE, or using relativize_paths
, or maybe I'm doing something else wrong.
Metadata
Metadata
Assignees
Labels
No labels