From 634a0d3fe3a50d34dba8ecab810eae8387b38e63 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Sun, 31 Jan 2010 10:34:56 +0100 Subject: =?UTF-8?q?Rollback=20patch=20=E2=80=9CTrick=20Internet=20Explorer?= =?UTF-8?q?=20into=20supporting=20some=20HTML=205=20tags.=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore-this: 97c77ca47a17f1d3e8465dabc5003f60 darcs-hash:110f530d17b041434466e7973e7910d3013cb75d --- journal.lisp | 22 ++++++++++------------ macros.lisp | 14 ++++++-------- 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/journal.lisp b/journal.lisp index cb0f98d..180517f 100755 --- a/journal.lisp +++ b/journal.lisp @@ -127,8 +127,7 @@ (with-tag ("content" `(("type" "xhtml") ("xml:lang" "de") ("xml:base" ,(link-to :index :absolute t)))) - (with-tag ("div" '(("xmlns" "http://www.w3.org/1999/xhtml") - ("xmlns:html" "http://www.w3.org/1999/xhtml"))) + (with-tag ("div" '(("xmlns" "http://www.w3.org/1999/xhtml"))) (xml-as-is (with-yaclml-output-to-string (<:as-html @@ -187,8 +186,7 @@ (with-tag ("content" `(("type" "xhtml") ("xml:lang" "de") ("xml:base" ,(link-to :index :absolute t)))) - (with-tag ("div" '(("xmlns" "http://www.w3.org/1999/xhtml") - ("xmlns:html" "http://www.w3.org/1999/xhtml"))) + (with-tag ("div" '(("xmlns" "http://www.w3.org/1999/xhtml"))) (xml-as-is (htmlise-entry journal-entry)))))))) #.(restore-sql-reader-syntax-state)) @@ -303,15 +301,15 @@ (format nil "~D Kommentar~:*~[e~;~:;e~]" (length comments))))))) (when *full-entry-view* - (<::html\:article :class :journal-entry + (<::article :class :journal-entry (<:h1 (<:a :href (link-to :view :post-id id) (<:as-is title))) - (<::html\:header :class :journal-entry-header - (<::html\:time :class :journal-entry-date - :pubdate "pubdate" - :datetime (format-date nil - "%4yr%-%2mon%-%2day%T%2hr%:%2min%:%2sec%Z" - posting-date) + (<::header :class :journal-entry-header + (<::time :class :journal-entry-date + :pubdate "pubdate" + :datetime (format-date nil + "%4yr%-%2mon%-%2day%T%2hr%:%2min%:%2sec%Z" + posting-date) (<:as-html (format-date nil "%@day-of-week%, den %day%.%mon%.%yr%, %hr%:%2min%." posting-date))) @@ -323,7 +321,7 @@ (<:as-is (if (equal type "html") body (journal-markup->html body)))) - (<::html\:footer :class :journal-entry-footer + (<::footer :class :journal-entry-footer (<:form :class :journal-entry-delete-button-form :style "display: inline;" :method "post" diff --git a/macros.lisp b/macros.lisp index 3daccfc..651a085 100644 --- a/macros.lisp +++ b/macros.lisp @@ -32,20 +32,18 @@ (emit-open-tag "html" #+clisp `(("dir" . ,dir) ("lang" . ,lang) ("xml:lang" . ,lang) - ("xmlns" . ,xmlns) - ("xmlns:html" . ,xmlns)) + ("xmlns" . ,xmlns)) #-clisp `("dir" ,dir "lang" ,lang "xml:lang" ,lang - "xmlns" ,xmlns - "xmlns:html" ,xmlns)) + "xmlns" ,xmlns)) (emit-body body) (emit-close-tag "html")) -(yaclml::def-html-tag <::html\:article :core :i18n :event) -(yaclml::def-html-tag <::html\:header :core :i18n :event) -(yaclml::def-html-tag <::html\:footer :core :i18n :event) -(yaclml::def-html-tag <::html\:time :core :i18n :event pubdate datetime) +(yaclml::def-html-tag <::article :core :i18n :event) +(yaclml::def-html-tag <::header :core :i18n :event) +(yaclml::def-html-tag <::footer :core :i18n :event) +(yaclml::def-html-tag <::time :core :i18n :event pubdate datetime) (defmacro with-web-journal ((page-title &key canonical-uri) &body body) -- cgit v1.2.3