Ilya Kreymer
71e8ada57d
rewrite: add test for banner-only mode, rewriting w/o a head using local
...
'sample_no_head' file.
query.html: use client side rewriting for calendar dates
rewrite: remove unused decode stuff
2014-08-04 20:45:02 -07:00
Ilya Kreymer
dd9f138bab
disable decoding, by default, of content for html parser
2014-06-27 16:53:33 -07:00
Ilya Kreymer
d7516f4cd7
rewrite: fix <base> rewriting, urlrewriter replacement
...
turn off lxml rewriter by default
2014-06-13 16:44:37 -07:00
Ilya Kreymer
2ad41e2b94
rewrite: rewrite data-* attributes if they look like links (http, https, //)
2014-04-22 16:32:36 -07:00
Ilya Kreymer
e1e55ac061
minor tweaks: rewrite 'crossorigin' -> '_crossorigin' param to disable
...
crossorigin as it may interfere with loading rewritten content, add
tests for html and lxml parsers
add server_cls as optional param to QueryHandler.init_from_config()
for easier customization
views: dont create template if empty template file specified
2014-04-19 12:04:43 -07:00
Ilya Kreymer
3aa4a4da7a
rewrite: ensure lxml parser closes gracefully on no input
2014-04-03 13:00:22 -07:00
Ilya Kreymer
9654c22bed
rewrite: add doctype rewriting, more tests on various markup edge cases
2014-03-23 23:46:49 -07:00
Ilya Kreymer
53590537e0
Merge develop and lxml
2014-03-18 17:14:27 -07:00
Ilya Kreymer
d1ad9b5e69
refactor: cleanup HTMLRewrtier/LXMLHTMLRewriter close path,
...
single close in base class delegeating to _internal_close()
Also, HTMLRewriter auto-terminates <script> and <style> tags
for consistency with lxml
2014-03-17 20:50:35 -07:00
Ilya Kreymer
10c84d8354
embed rewriting: add 'em_' flag for all regex-based rewrites
...
(js, css, xml) to be able to distinguish between embeds and non-embeds
more conclusively
wbrequest: add is_embed(), is_identity() properties
update tests
don't insert html banner if detected as an embed
2014-03-17 19:36:25 -07:00
Ilya Kreymer
2e7b17ed56
cleanup: move lxml tests to seperate test dir, seperate html, lxml html and regex
...
tests into seperate files
fix lxml toggle in rewriterrules
2014-03-17 15:30:45 -07:00