ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 SVG closing tag code

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
zerob Posted - Jan 09 2025 : 16:52:54
Hi Nigel

Is there a reason for closing svg tags the old, long way?
ImageEn does a:
<ellipse></ellipse>
instead of:
<ellipse />

The long closing is only needed when there are some tags inside of another tag (nesting),
and as ImageEn layers can't contain child layers, this isn't really needed, or is it?

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/ellipse
https://www.w3schools.com/graphics/svg_ellipse.asp
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 09 2025 : 17:13:06
Hi

ImageEn is expecting a title, e.g. <ellipse cx="240" cy="50" rx="220" ry="30" fill="yellow"><title>My ellipse</title></ellipse>, so for convenience we use closing tags even when a title is present.

Nigel
Xequte Software
www.imageen.com