deface
deface copied to clipboard
HTML5 tags ignored ?
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 Can you please share a test application that we can use to reproduce this problem? That would help us debug this problem.