change Scribble HTML to use `object' tag for SVG
original commit: a9bedcc69dae9790ad910285d5c75c2e4314d033
This commit is contained in:
parent
1d4626a4c1
commit
a14bdb7d66
|
@ -1004,14 +1004,21 @@
|
|||
[height ,(to-num (read-bytes 4 in))])]
|
||||
[else
|
||||
null])))])])
|
||||
`((,(if svg? 'iframe 'img)
|
||||
([src ,(let ([p (install-file src)])
|
||||
(if (path? p)
|
||||
(url->string (path->url (path->complete-path p)))
|
||||
p))]
|
||||
[alt ,(content->string (element-content e))]
|
||||
,@sz
|
||||
,@(attribs)))))]
|
||||
(let ([srcref (let ([p (install-file src)])
|
||||
(if (path? p)
|
||||
(url->string (path->url (path->complete-path p)))
|
||||
p))])
|
||||
`((,(if svg? 'object 'img)
|
||||
([,(if svg? 'data 'src) ,srcref]
|
||||
[alt ,(content->string (element-content e))]
|
||||
,@(if svg?
|
||||
`([type "image/svg+xml"])
|
||||
null)
|
||||
,@sz
|
||||
,@(attribs))
|
||||
,@(if svg?
|
||||
`((param ([name "src"] [value ,srcref])))
|
||||
null)))))]
|
||||
[(and (or (element? e) (multiarg-element? e))
|
||||
(ormap (lambda (v) (and (script-property? v) v))
|
||||
(let ([s (if (element? e)
|
||||
|
|
Loading…
Reference in New Issue
Block a user