<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
      "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type"
  content="application/xhtml+xml; charset=UTF-8" />
  <title>Bug requiredExtensions</title>
  <meta name="generator" content="Amaya, see http://www.w3.org/Amaya/" />
</head>

<body>
<p>Test 1: OK</p>
<svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="120" height="120">
  <svg:switch>
    <svg:foreignObject width="120" height="120">

      <div xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
      <h1>Title</h1>
      <math xmlns="http://www.w3.org/1998/Math/MathML">
        <mfrac  bevelled="true">
          <mi>a</mi>
          <mi>b</mi>
        </mfrac>
      </math> </div>
    </svg:foreignObject>
    <svg:text>foreignObject not supported 
    </svg:text>
  </svg:switch>
</svg:svg>

<p>Test 2: <code>requiredExtensions="http://www.w3.org/1999/xhtml"</code></p>
<svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="250" height="120">
  <svg:switch>
    <svg:foreignObject width="120" height="120"
                   requiredExtensions="http://www.w3.org/1999/xhtml">

      <div xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
      <h1>Title</h1>
      <math xmlns="http://www.w3.org/1998/Math/MathML">
        <mfrac  bevelled="true">
          <mi>a</mi>
          <mi>b</mi>
        </mfrac>
      </math></div>
    </svg:foreignObject>
    <svg:text transform="translate(20,20)">foreignObject not supported 
    </svg:text>
  </svg:switch>
</svg:svg>

<p>Test 2:
<code>requiredExtensions="http://www.w3.org/1998/Math/MathML"</code></p>
<svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="250" height="120">
  <svg:switch>
    <svg:foreignObject width="120" height="120"
                   requiredExtensions="http://www.w3.org/1998/Math/MathML">
      <math xmlns="http://www.w3.org/1998/Math/MathML">
        <mfrac  bevelled="true">
          <mi>a</mi>
          <mi>b</mi>
        </mfrac>
      </math> </svg:foreignObject>
    <svg:text transform="translate(20,20)">foreignObject not supported 
    </svg:text>
  </svg:switch>
</svg:svg>
</body>
</html>


