deface icon indicating copy to clipboard operation
deface copied to clipboard

HTML5 tags ignored ?

Open dunric opened this issue 11 years ago • 1 comments

Hi,

Deface cann't find html 5 tags like header or nav.

Deface::Override.new(:virtual_path => 'layouts/mainapp',
                     :name => 'breadcrumbs-table-row',
                     :cut => 'code[erb-loud]:contains("breadcrumbs")',
                     :insert_after => '#myheader')

Deface: 'breadcrumbs-table-row' matched 0 times with '#myheader'

It's run on a valid HTML document containing following tag

<header id="myheader">
</header>

Underlaying Nokogiri 1.5.10 does parse the above tag correctly.

Simple replacing of tag header with div and Deface will start to match it.

Is it a bug or a feature (ie. filter out non HTML4 tags) of Deface ?

dunric avatar Jan 27 '14 16:01 dunric

@dunric Can you please share a test application that we can use to reproduce this problem? That would help us debug this problem.

radar avatar Jan 27 '14 22:01 radar