* remove mynoscript hack (doesnt always work, always breaks on IE)

* Better JS event handling

svn: r10068

original commit: 0e3f55fa6e627c242e3e2661aef081f0fa532865
This commit is contained in:
Eli Barzilay 2008-05-31 16:13:40 +00:00
parent 776e71fbb6
commit 6b7db8a686
2 changed files with 5 additions and 3 deletions

View File

@ -721,7 +721,9 @@
[(script-element? e) [(script-element? e)
`((script ([type ,(script-element-type e)]) `((script ([type ,(script-element-type e)])
,(apply literal `("\n" ,@(script-element-script e) "\n"))) ,(apply literal `("\n" ,@(script-element-script e) "\n")))
(mynoscript ,@(render-plain-element e part ri)))] ;; mynoscript hack doesn't always work (see hack in scribble-common.js)
(noscript ,@(render-plain-element e part ri))
)]
[(target-element? e) [(target-element? e)
`((a ([name ,(format "~a" (anchor-name (tag-key (target-element-tag e) `((a ([name ,(format "~a" (anchor-name (tag-key (target-element-tag e)
ri)))])) ri)))]))

View File

@ -56,5 +56,5 @@ function DoSearchKey(event, field, ver) {
} }
// `noscript' is problematic in some browsers (always renders as a // `noscript' is problematic in some browsers (always renders as a
// block), use this hack instead // block), use this hack instead (does not always work!)
document.write("<style>mynoscript { display:none; }</style>"); // document.write("<style>mynoscript { display:none; }</style>");