Skip to content

relativize_paths silently, incorrectly transforms gcse:search #1319

Closed
@sirosen

Description

@sirosen

relativize_paths silently transforms gcse:search

Steps to reproduce

  1. Create an html file with Google's GCSE search snippet
    This includes an element for the Google JS to manipulate, <gcse:search></gcse:search>
  2. Run nanoc with rules to apply relativize_paths on that html file, with type: html
  3. 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 all
  • nanoc 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

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions