我在ul中嵌套了一个ul,但是得到了一个错误。我在这里搜索过,但解决方案似乎并不适用

时间:2018-01-01 00:34:46

标签: html

这是错误:在此上下文中元素ul不允许作为元素ul的子元素。 (抑制此子树中的更多错误。)

这是html:

 <tr>     
 <td> Incorporated Business Accounts - additional requirements:

 <ul>

 <li> Business name and address  </li>
 <li> Nature of business and date of incorporation </li>
 <li> BIN number</li>
 <li> Certificate of Incorporation</li>
 <li> Names of company directors</li>
 <li> Names of directors </li>
 <li> Proof of signing authority </li>
        <ul>
        <li> Ltd Companies:  Memorandum and Articles of Incorporation/Bylaws </li>
        <li> Registered Societies:  Constitution and Bylaws or minutes</li>
        <li> Strata Corporations: Bylaws or minutes</li>
        </ul>
 <li> Photo ID for all signers: if more than 3 signers, must ID at least 3 of those persons</li>
 </ul>
 </td></tr>
 </tbody>
 </table>

2 个答案:

答案 0 :(得分:3)

您需要嵌套在The code that caused this warning is on line 3 of the file Dictionary.py. To get rid of this warning, change code that looks like this: BeautifulSoup(YOUR_MARKUP}) to this: BeautifulSoup(YOUR_MARKUP, "lxml") markup_type=markup_type)) {'Noun': ['any of various mostly cold-blooded aquatic vertebrates usually having scales and breathing through gills', 'the flesh of fish used as food', '(astrology', 'the twelfth sign of the zodiac; the sun is in this sign from about February 19 to March 20'], 'Verb': ['seek indirectly', 'catch or try to catch fish or shellfish']} 标记下,如下所示:

<li>

答案 1 :(得分:1)

Ul应该在里面。请检查以下

....
<li> Proof of signing authority
    <ul>
    <li> Ltd Companies:  Memorandum and Articles of Incorporation/Bylaws </li>
    <li> Registered Societies:  Constitution and Bylaws or minutes</li>
    <li> Strata Corporations: Bylaws or minutes</li>
    </ul>
</li>
<li> Photo ID for all signers: if more than 3 signers, must ID at least 3 of those persons</li>
 ....