Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6019867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:29:00+00:00 2026-05-23T03:29:00+00:00

I am trying to output some HTML video tags park of which include <source

  • 0

I am trying to output some HTML video tags park of which include

<source src="${Model.WebMFilename}" type='video/webm; codecs="vp8, vorbis"' />

However in the browser this renders as

<source vorbis""="" vp8,="" type="video/webm; codecs=" src="VP8_645001.webm"></source>

Any idea how I stop Sparkview reformatting the output?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:29:01+00:00Added an answer on May 23, 2026 at 3:29 am

    Are you sure about your output? I ran this exact scenario through a unit test in the source code and I got the following:

    Input:

    <source src="${Model.WebMFilename}" type='video/webm; codecs="vp8, vorbis"' />
    

    Result:

    <source src="VP8_645001.webm"  type="video/webm; codecs="vp8, vorbis"" />
    

    This looks like a “feature” in Spark is getting in the way here, and this is becoming more prevalent with client side frameworks, json popularity and HTML5 attributes usage.

    The “feature” I speak of is that Spark can read your input and you can have single or double quotes surrounding your attributes and it will understand the value inside the attribute without an issue, but there is a current side effect of view compilation that automatically (and incorrectly) replaces the surrounding attributes with double quote instead of the quote type you actually used.

    I am currently working on a fix for this in the source code. In the mean time, you could try and place your double quotes on the outside of the attribute and try single quotes on the inside although I know this does break some of the client side frameworks since they don’t expect that. Can you try this instead (Note: single quote on the inside):

    <source src="${Model.WebMFilename}" type="video/webm; codecs='vp8, vorbis'" />
    

    Hope that helps,
    Rob

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to format some bad html to output into a pop window.
I'm trying to use XSL-stylesheets in order to transform some generated XML-data to HTML-output.
I am trying to modify the output stream to search/replace some XHTML tags returned
I'm trying to output some HTML in an XML template and Symfony's escaping method
I'm trying to include some (effectivly) static XML data in an HTML file, and
I'm trying to put some HTML content inside <content:encoded> tags using ROME and its
I am trying to output some Java objects as JSON, they have List properties
I am trying to right-align the output of some PL/SQL code, but dbms_output.put_line is
I was trying to run my application and check for some output on the
I am trying to format some c# output so that a number always has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.