[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
It's <table BORDER="1"> for me, forever
- From: jidanni@xxxxxxxxxxx
- Date: Mon, 20 Jul 2009 13:03:10 +0800
- X-ml-name: emacs-w3m
- X-mail-count: 10965
- References: <87y6qoc3go.fsf@xxxxxxxxxxx>
Gentlemen, we are facing tough times.
The people making HTML tables these days are more and more not saying
'border="1"', but instead counting on stylesheets, e.g.,
http://www.ts-spa.com.tw/room1.html .
And then there's the whole HTML 5 argument, where 'border="1"' is
invalid HTML, https://bugzilla.wikimedia.org/show_bug.cgi?id=18829 .
Should emacs-w3m start dealing with CSS? Nawwww.
Not to worry, genius me has come to the rescue, for one's .emacs-w3m file:
(setq w3m-use-filter t)
(eval-after-load "w3m-filter"
'(nconc w3m-filter-rules
'((".*" w3m-filter-tables-always-border))))
(defun w3m-filter-tables-always-border (url)
(w3m-filter-replace-regexp url "<table" "<table border=\"1\""))
(However this also affects browsing text/plain. Also I should make
it case insensitive for even <TABLE>.)