T
T
tef2015-11-06 01:12:57
css
tef, 2015-11-06 01:12:57

Has anyone already thought about making the page entirely in svg?

Question from the category: "chewed a loaf, I thought ...".
I mean most of the html is replaced with svg and then styled as needed.
I'm not an expert, of course, in security and any pentest, but I know that svg is xml. And, it seems like, xml is very susceptible to all kinds of xss and other evil spirits. Maybe that's why they don't consider it especially, as a relative replacement for html? Simply, if you imagine that you can draw elements and save them and then modify them with a file? All sorts of triangles, circles and other design madness can be done without leaving the cash register and without perverting with tags and styles.
Who will say what?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander Taratin, 2015-11-06
@Taraflex

You can do it, but there will be problems with adaptability + search engines will not be able to parse the content of the site.

S
Stalker_RED, 2015-11-06
@Stalker_RED

This is an idea from the same series as "entire site in flash".
Pros:
Nearly unlimited design frenzy
Cons:
Indexing
issues Font rendering issues
Difficulty of support
Offer your pros and cons.
And yes, I didn’t understand at all what is common between xml and xss except for the letter "X"?

S
Super User, 2015-11-06
@sergeystepanov1988

Here is what they say about it on a well- known resource .
Personally, I think there will be performance issues. But I may be wrong.

A
Andrey Khokhlov, 2015-11-06
@andrhohlov

How will this site be maintained in the future?
How to cut it into templates and pull it onto the engine?
What about indexing, cross-browser compatibility, client scripts?
The site must work, but here it can only be a one-time design frenzy.
And in ordinary sites this madness is enough :(

R
Rafael™, 2015-11-06
@maxminimus

svg is a specific type of document element
. Same as, for example, an element of type span
That is, at the root of the document there can be mountains of vector images mixed with text elements
. Why use svg but not use span ?
in which there will be the necessary texts for search engines
In the end, you can make them hidden
But Wikipedia just says the opposite - what is accessibility to search engines

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question